/*题目：输入三个整数 x、y、z，请把这三个数由小到大输出。*/
#include<stdio.h>
int main()
{
    int x,y,z;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y)
    {
        int tmp = x;
        x = y;
        y = tmp;
    }
    if(y>z)
    {
        int tmp = y;
        y = z;
        z = tmp;
    }
    if(x>y)
    {
        int tmp = x;
        x = y;
        y = tmp;
    }
    printf("%d,%d,%d",x,y,z);
    return 0;
}